﻿using Fantasy;
using Fantasy.Model;

try
{
    Application.Initialize();
    ConfigTableHelper.Bind();
    AssemblyHelper.Initialize();
    Application.Start().Coroutine();
    for (;;)
    {
        Thread.Sleep(1);
        //同步上下文的原理，以及性能消耗
        ThreadSynchronizationContext.Main.Update();
        SingletonSystem.Update();
    }
}
catch (Exception e)
{
    Console.WriteLine(e);
}